$OpenBSD: patch-src_util_c,v 1.9 2015/01/24 03:52:53 lteo Exp $
--- src/util.c.orig	Tue Sep 16 20:24:43 2014
+++ src/util.c	Sat Oct 25 16:33:34 2014
@@ -225,12 +225,13 @@ int DisplayBanner(void)
  * Returns: void function
  *
  ****************************************************************************/
-void ts_print(register const struct timeval *tvp, char *timebuf)
+void ts_print(register const struct sf_timeval32 *tvp, char *timebuf)
 {
     register int s;
     int    localzone;
     time_t Time;
     struct timeval tv;
+    struct sf_timeval32 tvnow;
     struct timezone tz;
     struct tm *lt;    /* place to stick the adjusted clock data */
 
@@ -240,7 +241,9 @@ void ts_print(register const struct timeval *tvp, char
         /* manual page (for linux) says tz is never used, so.. */
         memset((char *) &tz, 0, sizeof(tz));
         gettimeofday(&tv, &tz);
-        tvp = &tv;
+        tvnow.tv_sec = tv.tv_sec;
+        tvnow.tv_usec = tv.tv_usec;
+        tvp = &tvnow;
     }
 
     localzone = snort_conf->thiszone;
